@charset "UTF-8";

//
// @copyright        2017 opencart.cn - All Rights Reserved
// @link             http://www.guangdawangluo.com
// @author           Pu shuo <pushuo@opencart.cn>
// @created          2017-10-23 11:41:25
// @modified         2018-07-02 10:27:34
//

#bsBox {
    @media (max-width: 768px) {
        width: 90% !important;
        left: 5% !important;
        margin-left: 0 !important;
        .bsTop, #bsMorePanel {
            width: 100% !important;
        }
    }
}

@media (max-width: 768px) {
    .fancybox-nav span {
        visibility: visible !important;
    }
}

#photo-modal{
    .modal-dialog{
        width: 800px !important;
        & >img{
            width: 100%;
        }
    }
}

#product-product {
    & > .row {
        margin-top: 30px;
    }

    .elevate-zoom-preview {
        margin-bottom: 14px;
        a {
            & > img {
                width: 100%;
            }
        }
    }

    /*loading的样式*/
    .loading-mask {
        z-index: 1000;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 48px;
        text-align: center;
        i{
            color: #ccc;
            position: absolute;
            top: 50%;
            transform: translate(0 -50%);
        }
    }

    /*开启试戴的按钮*/
    .tryon-button {
        position: absolute;
        top: 10px;
        right: 25px;
        padding: 10px;
        background-color: #fff;
        border-radius: 24px;
        box-shadow: 0 8px 16px rgba(111,148,163,.16);
        cursor: pointer;
        z-index: 1000;
        .glass-icon {
            display: inline-block;
            width: 39px;
            height: 19px;
            background-image: url("/catalog/view/theme/default/image/icon/icon_glasses_black.svg");
            background-size: cover;
            background-repeat: no-repeat;
            vertical-align: text-bottom;
        }
        span {
            font-size: 14px;
            color: #333;
        }
    }

    /*试戴弹框的样式*/
    #product-tryon-modal {
        .modal-dialog {
            width: auto;
        }
        .modal-header {
            position: relative;
            text-align: center;
            padding: 20px 30px;
            border-bottom: none;
            span {
                font-size: 20px;
                font-weight: bold;
            }
            .cancel-tryon {
                position: absolute;
                top: 17px;
                right: 30px;
                padding: 6px 13px;
                border-radius: 17px;
                font-size: 16px;
                color: #fff;
                background-color: #333;
                cursor: pointer;
            }
        }
        .modal-body {
            padding: 0 30px;
            .tryon-stage {
                width: 940px;
                height: 540px;
                margin-bottom: 20px;
                background-color: #f0f0f0;
            }
            .tryon-control-bar {
                display: flex;
                max-width: 940px;
                margin-bottom: 10px;
                overflow: hidden;
                .clear-all-glasses {
                    position: relative;
                    flex-shrink: 0;
                    width: 115px;
                    height: 115px;
                    margin-right: 8px;
                    background-image: url("/catalog/view/theme/default/image/icon/clear-glasses.svg");
                    background-repeat: no-repeat;
                    background-size: cover;
                    cursor: pointer;
                    z-index: 10;
                }
                .tryon-glasses-list {
                    position: relative;
                    width: 100%;
                    .swiper-wrapper {
                        .swiper-slide {
                            cursor: pointer;
                            img {
                                width: 115px;
                                height: 115px;
                                border: 1px solid rgba(230,230,230,1);
                                &.selected {
                                    border:2px solid rgba(106,106,106,1);
                                }
                            }
                            p {
                                margin-top: 6px;
                                font-size: 16px;
                                color: #6A6A6A;
                            }
                        }
                    }
                    /*swiper的前进后退按钮样式*/
                    .swiper-pager {
                        position: absolute;
                        right: 0;
                        top: 0;
                        width: 100%;
                        height: 100%;
                        .swiper-button-prev {
                            width: 40px;
                            height: 100%;
                            top: 0;
                            left: 0;
                            margin-top: 0;
                            background-color: #fff;
                            opacity: 1;
                            box-shadow:10px 0 20px rgba(162,162,162,0.16);
                            background-image: url("/catalog/view/theme/default/image/icon/tryon-arrow-left.svg");
                            background-size: auto;
                            &.swiper-button-disabled {
                                opacity: 0;
                            }
                        }
                        .swiper-button-next {
                            width: 40px;
                            height: 100%;
                            top: 0;
                            right: 0;
                            margin-top: 0;
                            background-color: #fff;
                            opacity: 1;
                            box-shadow:-10px 0px 20px rgba(162,162,162,0.16);
                            background-image: url("/catalog/view/theme/default/image/icon/tryon-arrow-right.svg");
                            background-size: auto;
                            &.swiper-button-disabled {
                                opacity: 0;
                            }
                        }
                    }
                }
            }
        }
    }

    #product-thumbnail-gallery {
        a.thumbnail {
            padding: 0;
            margin-bottom: 10px;
            border-color: transparent;
            & > img {
                width: 70px;
                height: 70px;
            }
            &.active {
                border-color: $brand-secondary;
            }
            &:hover {
                border-color: $brand-secondary;
                cursor: pointer;
            }
        }
    }

    h1 {
        margin: 0 0 16px;
        font-size: 26px;
        line-height: 26px;

        @media (max-width: 768px) {
            font-size: 20px;
        }
    }

    h3 {
        font-size: 16px;
    }

    .product-description {
        position: relative;
        &.product-detail-right {
            min-height: 458px;
            display: flex;
            flex-direction: column;
            -ms-flex-direction: column;
            -webkit-flex-direction: column;
        }
        & > h1 {
            font-size: 20px;
            color: $brand-secondary;
        }
        @media (min-width: 768px) {
            padding-left: 30px;
        }

        .form-group {
            label {
                font-weight: 500;
                text-transform: uppercase;
                font-size: 12px;
            }
        }
    }

    #product {
        flex-grow: 1;
        position: relative;
        &.has-padding-bottom {
            padding-bottom: 100px;
            &.has-margin-top {
                margin-top: 16px;
            }
        }
        .radio, .checkbox {
            display: inline-block;
            margin: 0;
            font-size: 12px;
            cursor: pointer;
            width: 209px;
            vertical-align: top;
            &:hover {
                span {
                    border: 2px solid $brand-secondary;
                    padding: 5px 4px;
                }
            }

            img {
                padding: 0;
            }

            input {
                display: none;
                &:checked + span {
                    border: 2px solid $brand-secondary;
                    padding: 5px 4px;
                }
            }

            span {
                display: block;
                position: relative;
                padding: 6px 5px;
                margin-bottom: 4px;
                color: #666;
                border: 1px solid #ddd;
                text-align: left;
            }
        }
        // 禁止多行文本拉伸
        textarea {
            resize: none;
        }
        //修改上传按钮的背景颜色
        .upload-button {
            background-color: #E6E6E6;
        }
        // 修改详情页的button，hover时边框颜色变成#fcfcfc的问题
        .btn-default:hover {
            border-color: #ddd;
        }
    }

    .product-attribute {
        display: flex;
        padding: 8px 0;
        border-top: 1px solid #E6E6E6;
        border-bottom: 1px solid #E6E6E6;
        div {
            flex-shrink: 0;
            padding: 3px 5px;
            text-align: center;
            &:last-child {
                width: 257px;
            }
            span {
                color: #333;
            }
            &:first-child {
                width: 176px;
                padding-left: 0;
                span {
                    &:not(.title) {
                        color: $brand-primary;
                    }
                }
            }
            &:nth-child(2) {
                width: 208px;
                border-left: 1px solid #E6E6E6;
                border-right: 1px solid #E6E6ffE6;
            }
            .title {
                font-weight: bold;
                color: $brand-secondary;
            }
        }
    }

    .tax-discounts-box {
        padding-left: 0;
        margin-top: 21px;
        margin-bottom: 14px;
        font-size: 17px;
        color: $brand-secondary;
        list-style: none;
        li {
            float: left;
            &:not(:last-child) {
                margin-right: 47px;
            }
            .discount-price {
                color: $brand-primary;
            }
        }
    }

    .product-price-wrapper {
        font-size: 26px;
        margin: 20px 0 24px;
        h2 {
            font-size: 28px;
        }
        .price-new {
            color: $brand-primary;
        }

        .price-old {
            color: #888;
            font-size: 18px;
            margin-left: 4px;
        }

        .points {
            // margin-left: 20px;
            font-size: 16px;
        }
    }

    .product-cart-action {
        position: absolute;
        bottom: 0;
        overflow: hidden;
        margin: 0;
        .form-control, button {
            height: 60px;
            font-size: 18px;
        }

        .quantity-input-wrapper {
            position: relative;
            float: left;
            width: 185px;
            height: 60px;
            margin-right: 24px;

            a {
                right: 1px;
                position: absolute;
                background: #F6F6F6;
                width: 38px;
                height: 30px;
                font-size: 24px;
                text-align: center;
                line-height: 30px;
                color: #ccc;
                transition: all .3s 0s ease;
                &:hover {
                    background: #ccc;
                    color: $brand-secondary;
                }
                &.quantity-up {
                    top: 1px;
                }
                &.quantity-down {
                    bottom: 1px;
                }
            }
        }

        #button-cart {
            float: left;
            width:200px;
            height:60px;
            background:rgba(51,51,51,1);
            font-size: 20px;
            transition: opacity .3s 0s ease;
            .cart-icon {
                display: inline-block;
                width:32px;
                height:32px;
                background-image: url("/catalog/view/theme/default/image/icon_Shopping Cart2.svg");
                background-repeat: no-repeat;
                background-size: contain;
                vertical-align: -.4em;
            }
            &:hover {
                opacity: .8;
            }
        }

        .wishlist-share {
            margin-top: 12px;
            float: left;
            @media (max-width: 768px) {
                margin-top: 8px;
            }
            button {
                padding: 0;
                border: none;
                &.btn:active {
                    box-shadow: none;
                }
                &.btn-default:focus,
                &.btn-default:active,
                &:hover {
                    background-color: transparent;
                }
                &.btn.compare{
                    width: 58px;
                    height: 36px;
                    background-image: url("/catalog/view/theme/default/image/icon-11.svg");
                    vertical-align: middle;
                    background-size: 100% auto;
                    transition: all .3s ease;
                    &:hover{
                        opacity: 0.9;
                    }
                    &.disabled {
                        background-image: url("/catalog/view/theme/default/image/vs-disabled.svg");
                        &:hover{
                            opacity: initial;
                        }
                    }
                }
                &.favor {
                    width: 36px;
                    height: 36px;
                    background-image: url("/catalog/view/theme/default/image/icon_Collection6@2x.png");
                    vertical-align: middle;
                    background-size: 100%;
                    &.is-favor {
                        background-image: url("/catalog/view/theme/default/image/icon_Collection7@2x.png");
                    }
                }
                &:first-child {
                    margin-left: 32px;
                }
                &:last-child {
                    margin-left: 20px;
                }
            }
        }
    }
    //商品信息提示区域
    .info-area {
        width: 100%;
        height: 36px;
        line-height: 36px;
        margin-top: 20px;
        padding-left: 12px;
        font-size: 16px;
        color: $brand-secondary;
        background:rgba(246,246,246,1);
    }


    .stars-box {
        .rating {
            float: left;
            margin: -3px 20px 0 0;
            span {
                font-size: 16px;
            }
        }

        .more-review {
            a {
                color: #666;
            }
        }
    }

    .review-block {
        td {
            & > strong {
                float: left;
                margin-right: 18px;
            }
        }
    }

    //商品属性的tab头部导航栏
    .product-tabs {
        margin-top: 48px;
        height: 40px;
        background:rgba(246,246,246,1);
        border-left:1px solid rgba(230,230,230,1);
        border-top:1px solid rgba(230,230,230,1);
        border-right:1px solid rgba(230,230,230,1);
        border-bottom:  1px solid $brand-secondary;
        li {
            float: left;
            cursor: pointer;
            a {
                display: block;
                width:120px;
                height:40px;
                line-height: 40px;
                font-size: 18px;
                text-align: center;
                color: $brand-secondary;
            }
            &.active {
                position: relative;
                bottom: 1px;
                a {
                    background: rgba(51,51,51,1);
                    color: #fff;
                    border: 1px solid $brand-secondary;
                    &:before {
                        display: none;
                    }
                }
            }
        }
    }

    .tab-content {
        //padding: 20px;
        //margin: 20px 0 20px;
        //border: $default-border;
        margin-bottom: 48px;
        img {
            max-width: 100%;
        }
        //评价部分的样式
        .review-area {
            padding-left: 23px;
            font-size: 16px;
            color: $brand-secondary;
            border-bottom: 1px solid #E6E6E6;
            .header {
                height: 75px;
                line-height: 75px;
                & > div {
                    float: left;
                    &.name {
                        margin-right: 18px;
                        font-weight: bold;
                    }
                    &.date {
                        float: right;
                        color: #B2B2B2;
                    }
                }
            }
            .content {
                height: 40px;
                line-height: 15px;
            }
            .review-image-container {
                margin-bottom: 20px;
                cursor: pointer;
                .review-image {
                    display: inline-block;
                    position: relative;
                    margin-right: 10px;
                    img {
                        width: 100px;
                        height: 100px;
                    }
                    &:hover {
                        .mask {
                            display: block;
                        }
                    }
                    .mask {
                        display: none;
                        position: absolute;
                        top: 0;
                        bottom: 0;
                        left: 0;
                        right: 0;
                        text-align: center;
                        line-height: 5;
                        color: #9d9d9d;
                        font-size: 20px;
                        background-color: rgba(0,0,0,.6);
                        i {
                            cursor: pointer;
                            color: #fff;
                        }
                    }
                    & > i {
                        position: absolute;
                        right: -6px;
                        top: -6px;
                        font-size: 16px;
                        cursor: pointer;
                        transition: transform .3s 0s ease;
                        &:hover {
                            transform: scale(1.2);
                        }
                    }
                }
            }
        }
        /*无评价样式*/
        .no-review-container {
            width: 162px;
            margin: 160px auto 300px;
            text-align: center;
            .no-reviews {
                width: 162px;
                height: 162px;
                background-image: url("/catalog/view/theme/default/image/icon/icon_no_comment.svg");
                background-repeat: no-repeat;
                background-position: center;
                background-size: 100%;
            }
            p {
                margin-top: 10px;
                font-size: 18px;
                color: #333;
            }
        }

        .pagination {
            & > li {
                & > a {
                    width: 40px;
                    height: 40px;
                    line-height: 1.1;
                    font-size: 20px;
                    padding: 7px 14px;
                    color: $brand-secondary;
                    white-space: nowrap;
                    &:hover {
                        color: $brand-secondary;
                        background-color: #eeeeee;
                    }
                }
            }
            & > .active {
                & > span {
                    width: 40px;
                    height: 40px;
                    line-height: 1.1;
                    font-size: 20px;
                    padding: 7px 14px;
                    background-color: $brand-secondary;
                }
            }
        }
    }
    //相关商品样式
    .related-goods {
        margin-bottom: 84px;
        & > .row {
            @media (min-width: $screen-sm-min){
                .col-sm-3:nth-child(4n+4){
                    .product-thumb{
                        border-right: 1px solid #e6e6e6;
                    }
                }
                .col-sm-3:nth-child(1),
                .col-sm-3:nth-child(2),
                .col-sm-3:nth-child(3),
                .col-sm-3:nth-child(4){
                    .product-thumb{
                        border-top: 1px solid #e6e6e6;
                    }
                }
            }
            @media (max-width: $screen-xs-max) {
                .col-xs-6:nth-child(2n+2) .product-thumb{
                    border-right: $default-border;
                }
                .col-xs-6:nth-child(2) .product-thumb,
                .col-xs-6:nth-child(1) .product-thumb{
                    border-top: $default-border;
                }
            }
            .col-xs-6,
            .col-sm-3 {
                &:last-of-type {
                    .product-thumb {
                        border-right: 1px solid #e6e6e6;
                    }
                }
            }

        }

    }
}


#player-wrapper{
    display: none;
    //height: 374px;
    //width: 374px;
    position: relative;
    z-index: 10001;
    margin-bottom: 14px;
}

#player-play{
    position: absolute;
    left: 50%;
    top: 65%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-image: url("/catalog/view/theme/default/image/icon/icon-player-play.svg");
    background-size: 100%;
    z-index: 999;
    cursor: pointer;
    display: none;
}

#player-close{
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    background-image: url("/catalog/view/theme/default/image/icon/icon-player-close.svg");
    background-size: 100%;
    z-index: 10002;
    cursor: pointer;
    display: none;
    opacity: 0;
    transition: opacity .5s ease;
}
#player-wrapper:hover #player-close{
    opacity: 1;
}

#player-content{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}